package io.dshubs.archives.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.dshubs.commons.tools.utils.DateUtils;
import io.dshubs.commons.tools.utils.TreeNode;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author tan 2021/8/17
 **/
@Data
public class ArchiveBaseCategoryDto extends TreeNode {

    private Long id;

    @ApiModelProperty("上级分类")
    private Long pid;

    @ApiModelProperty("租户编码")
    private Long tenantCode;

    @ApiModelProperty("全宗id")
    private Long archiveId;

    @ApiModelProperty("分类号")
    private String code;

    @ApiModelProperty("分类名称")
    private String name;

    @ApiModelProperty("归档范围   描述需归档至本分类的档案的业务范围。")
    private String archiveAreaDesc;

    @ApiModelProperty("保管期限  从字典表获取")
    private Long deadLine;

    @ApiModelProperty("密级从字典表获取")
    private Long secret;

    @ApiModelProperty("排序")
    private Long sort;

    @ApiModelProperty("更新人")
    private Long updater;

    @ApiModelProperty("type")
    private Long type;

    @ApiModelProperty("关联表单")
    private String formKey;

    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date updateDate;

    @ApiModelProperty("创建者")
    private Long creator;

    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    @ApiModelProperty("创建时间")
    private Date createDate;


    private String deadLineStr;


    private String typeStr;

    private String secretStr;

}
